package com.wondersgroup.fjzlpt.console.controller.view.ksxx;

import com.alibaba.fastjson.JSONObject;
import com.wondersgroup.fjzlpt.console.utils.ControllerCommonUtils;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * 科室信息
 * Created by lion on 2017/8/2.
 */
@Controller
@RequestMapping("/ksxx")
public class KsxxController {

    /**
     * 机构科室信息
     * @param request
     * @return
     */
    @RequestMapping("/index.html")
    public String index(HttpServletRequest request){
        JSONObject requestData = ControllerCommonUtils.getRequestData(request);
        request.setAttribute("requestData", requestData);
        return "ksxx/index";
    }

    /**
     * 机构一级科室维护页面
     * @param request
     * @return
     */
    @RequestMapping("/manager.html")
    public String manager(HttpServletRequest request){
        JSONObject requestData = ControllerCommonUtils.getRequestData(request);
        Map map = com.quick.framework.boot.web.utils.RequestUtils.GetParameterMap(request);
        requestData.putAll(map);
        request.setAttribute("requestData", requestData);
        return "ksxx/manager";
    }

    /**
     * 机构二级科室维护页面
     * @return
     */
    @RequestMapping("managerSecond.html")
    public String managerSecond(){
        return "ksxx/managerSecond";
    }
}
